package main.chapter3;/**
 * @Author xy
 * @Date 2020/6/3 21:51
 * @Description
 */

import java.util.Scanner;

/**
 * 文件名称： main.chapter3.ScannerTest.java</br>
 * 初始作者： xy</br>
 * 创建日期： 2020/6/3 21:51</br>
 * 功能说明： TODO <br/>
 * =================================================<br/>
 * 修改记录：<br/>
 * 修改作者        日期       修改内容<br/>
 * ================================================<br/>
 * Copyright (c) 2020-2021 .All rights reserved.<br/>
 */
public class InputTest {
    public static void main(String[] args) {
        Scanner in =  new Scanner(System.in);
        System.out.println("What is your name?");
        String name = in.nextLine();
        System.out.println("How old are you?");
        int age = in.nextInt();
        System.out.println("Hello,"+name+",Next year you'll be "+(age+1));

    }

}
